package com.service;

import java.util.List;
import java.util.Map;

import com.beans.User;
import org.apache.ibatis.annotations.Mapper;
import com.beans.Admin;

@Mapper
public interface AdminService {
    int addAdmin(Admin user);

    int updateAdmin(Admin user);

    int deleteAdmin(int id);

    Admin getAdminById(int id);

    List<Admin> getAllAdmin();

    List<Admin> getone(String userName);

    Map<String,Object> queryByPage(Admin admin, Integer page, Integer limit);
}

